<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录—<s:property value="#application.website.websiteName"/></title>
<link href="css/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/tools/public.js"></script>
<script type="text/javascript">
  function check()
  {
      var email=$("#email").val();
      var password=$("#password").val();
      if(email=="")
      {
         alert("请输入Email");
         return false;
      }else if(password=="")
      {
         alert("请输入密码!");
         return false;
      }
      $('form').submit();
     
   }
</script>
</head>
<body>
<div id="background">
<img src="<s:property value="#application.website.bgimg"/>">
</div>
<div id="wrap">
	<jsp:include page="../header.jsp"></jsp:include>
<div id="ind_main">
<form action="user!loginUser.action" method="post">
	<div class="dl">
    	<h1>会员登录</h1>
    	<s:actionmessage cssClass="none" cssStyle="padding: 0px 0px 0px;color:red;"/>
    	<ul>
        	<li>
            	<h4>电子邮箱：</h4>
                <input name="user.email" id="email" type="text" />
            </li>
            <li>
            	<h4>密码：</h4>
                <input name="user.password" id="password" type="password" />
            </li>
        </ul>
        <h2><a href="#">【随便看看】</a></h2>
        <h3><a href="#">忘记密码？</a><a href="javascript:void(0);" onclick="check()"><img src="images/an04.png" /></a></h3>
   	</div>
</form>
</div><!--end#ind_main--> 


   	<div id="bottom">
		<h1>--------------  商场/酒店/饭店 信息提供的平台  -------------</h1>
    </div><!--end#bottom-->
</div><!--end#wrap-->
</body>
</html>

